  <header class="main-header">
    <nav class="navbar navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <a href="{:url('index/index/index')}" class="navbar-brand"><b>Admin</b>LTE</a>
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
            <i class="fa fa-bars"></i>
          </button>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
          <ul class="nav navbar-nav">
            {category:list name='vo' child='son' id='' order='id desc' limit='999'}
            {empty name="vo.son"}
            <li class="{$vo.class}"><a href="{$vo.category_url}">{$vo.title}<span class="sr-only">(current)</span></a></li>
            {else /}
            <li class="dropdown {$vo.class}">
              <a href="{$vo.category_url}" class="dropdown-toggle" data-toggle="dropdown">{$vo.title}<span class="caret"></span></a>
              <ul class="dropdown-menu" role="menu">
                {volist name="vo.son" id="child"}
                <li class="{$child.class}"><a href="{$child.category_url}">{$child.title}</a></li>
                {/volist}
              </ul>
            </li>
            {/empty}
            {/category:list}
          </ul>
          <form class="navbar-form navbar-left" action="{:url('index/search/index')}" role="search">
            <div class="form-group has-feedback">
              <input type="text" name="keywords" class="form-control" id="navbar-search-input" placeholder="Search">
              <span class="glyphicon glyphicon-search form-control-feedback"></span>
            </div>
          </form>
        </div>
        <!-- /.navbar-collapse -->
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
          <ul class="nav navbar-nav">
{if condition="is_login() gt 0"}
    {cms:member name="user"}
            <!-- User Account Menu -->
            <li class="dropdown user user-menu">
              <!-- Menu Toggle Button -->
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <!-- The user image in the navbar-->
                <img src="{$user.avatar}" class="user-image">
                <!-- hidden-xs hides the username on small devices so only the image appears. -->
                <span class="hidden-xs">{$user.username}</span>
              </a>
              <ul class="dropdown-menu">
                <!-- The user image in the menu -->
                <li class="user-header">
                  <img src="{$user.avatar}" class="img-circle">

                  <p>
                    {$user.group_name}
                    <small>{$user.motto}</small>
                  </p>
                </li>
                <!-- Menu Body -->
                <li class="user-body">
                  <div class="row">
                    <div class="col-xs-4 text-center">
                      <a href="{:url('index/member/message')}">消息</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="{:url('index/member/setting')}">设置</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="{:url('index/member/logout')}">登出</a>
                    </div>
                  </div>
                  <!-- /.row -->
                </li>
              </ul>
            </li>
    {/cms:member}
{else /}
            <li><a href="{:url('index/member/login')}">登陆</a></li>
{/if}
          </ul>
        </div>
        <!-- /.navbar-custom-menu -->
      </div>
      <!-- /.container-fluid -->
    </nav>
  </header>